{extend name="base"/}
{block name="title"}
GMOB记录
{/block}
{block name="css"}
<link rel="stylesheet" href="__MOBILE__/css/wangStyle.css"/>
{/block}
{block name="content"}
<div class="head">
    <div class="head_left"><a href="javascript:history.go(-1);"><img src="__MOBILE__/images/true.png" alt=""></a></div>
    <div class="head_con">星级收益</div>
    <div class="head_right"></div>
</div>
<div class="list_content">
        <div class="list_thred flex">
            <p>类型</p>
            <p>金额</p>
            <p>当前GMOB</p>
            <p>时间</p>
        </div>
        <ul class=" list_content1">
            {volist name='xingji_shouyi' id='vo'}
            <li>
                <p>{$vo.type}</p>
                <p>{$vo.num}</p>
                <p>{$vo.now_integral}</p>
                <p>{$vo.create_time}</p>
            </li>
            {/volist}
        </ul>
        <div class="addlist">
            <div class="load load1"><img src="__MOBILE__/images/loading.gif" alt=""></div>
            <p id="add" class="addmore">点击加载更多</p>
        </div>
    </div>
{/block}
{block name="js"}
<script>
    var page = 1;
	$("#add").on("click",function () {
		var that = this;
		$(".load1").show();
		$(that).hide();
        page++;
        $.ajax({
            type: 'POST',
            url: '/langjinmobile/home/log',
            data: {page: page,type:1},
            dataType: 'json',
            success: function (data) {
				$(".load1").hide();
		        $(that).show();
                var str = "";
                if (data.status == 1) {
                    $.each(data.data,function (key,value) {
                        str += '<li><p>'+value.type+'</p>';
                        str += '<p>'+value.num+'</p>';
                        str += '<p>'+value.now_integral+'</p>';
                        str += '<p>'+value.create_time+'</p></li>';
                    });
                    $(".list_content1").append(str);
                } else {
                    $(that).html("{:lang('没有更多记录了')}...");
                }
            }
        })
    });
</script>
{/block}